package com.vhr.mapper;

import com.vhr.VO.OvertimeAdminVo;
import com.vhr.VO.OvertimeVO;
import com.vhr.entities.Overtime;
import com.vhr.entities.OvertimeExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OvertimeMapper {

    List<OvertimeAdminVo>  selectById(@Param("empId")Integer empId);

    List<OvertimeAdminVo> selectByDeptAndStatusAndName(@Param("deptId") Integer deptId,@Param("status") Integer status,@Param("empName") String empName);

    List<OvertimeAdminVo> selectNoOperated();

    List<OvertimeAdminVo> selectOperated();

    List<OvertimeAdminVo> selectAll();
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int countByExample(OvertimeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int deleteByExample(OvertimeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int deleteByPrimaryKey(Integer overtimeId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int insert(Overtime record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int insertSelective(Overtime record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    List<Overtime> selectByExample(OvertimeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    Overtime selectByPrimaryKey(Integer overtimeId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByExampleSelective(@Param("record") Overtime record, @Param("example") OvertimeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByExample(@Param("record") Overtime record, @Param("example") OvertimeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByPrimaryKeySelective(Overtime record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table overtime
     *
     * @mbggenerated Wed Sep 25 10:13:46 CST 2019
     */
    int updateByPrimaryKey(Overtime record);
}